import { PageContainer } from '@ant-design/pro-components';
import { useAccess } from 'umi';
import PaginationQueryCompetitionTeamTable from './components/PaginationQueryCompetitionTeamTable'
import TeamInfoPanel from './components/TeamInfoPanel';
function CompetitionTeam() {
    const access = useAccess();
    return (
        <PageContainer ghost>
            {/* 使用权限区分不同身份用户显示的面板 */}
            {access.canAdmin && <PaginationQueryCompetitionTeamTable />}
            {access.canUser && <TeamInfoPanel />}
        </PageContainer>
    )
}
export default CompetitionTeam;
